package com.example.webdemo.service.impl;

import com.example.webdemo.dao.TagMapper;
import com.example.webdemo.model.Tag;
import com.example.webdemo.service.TagsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zp
 * @version 1.0
 * @description: tag实现类
 * @date 2023/7/31 18:55
 */
@Service
public class TagsServiceImpl implements TagsService {
    @Resource
    private TagMapper tagMapper;

    @Override
    public List<Tag> selectAll() {
        return tagMapper.selectAll();
    }

    @Override
    public Tag selectByPrimaryKey(Integer id) {
        return tagMapper.selectByPrimaryKey(id);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tagMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Tag record) {
        return tagMapper.insert(record);
    }

    @Override
    public int insertSelective(Tag record) {
        return insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Tag record) {
        return updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Tag record) {
        return 0;
    }
}
